.class public Lcom/xingbook/anima/c;
.super Landroid/view/animation/Animation;


# instance fields
.field private a:I

.field private b:I

.field private c:I

.field private d:I

.field private e:F

.field private f:F

.field private g:F

.field private h:F

.field private i:F

.field private j:F

.field private k:[Lcom/xingbook/anima/d;

.field private l:I

.field private m:D

.field private n:[D


# direct methods
.method public constructor <init>([Lcom/xingbook/anima/d;)V
    .locals 8

    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-direct {p0}, Landroid/view/animation/Animation;-><init>()V

    iput v1, p0, Lcom/xingbook/anima/c;->a:I

    iput v1, p0, Lcom/xingbook/anima/c;->b:I

    iput v1, p0, Lcom/xingbook/anima/c;->c:I

    iput v1, p0, Lcom/xingbook/anima/c;->d:I

    iput v0, p0, Lcom/xingbook/anima/c;->e:F

    iput v0, p0, Lcom/xingbook/anima/c;->f:F

    iput v0, p0, Lcom/xingbook/anima/c;->g:F

    iput v0, p0, Lcom/xingbook/anima/c;->h:F

    const-wide/16 v2, 0x0

    iput-wide v2, p0, Lcom/xingbook/anima/c;->m:D

    iput-object p1, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    array-length v0, p1

    iput v0, p0, Lcom/xingbook/anima/c;->l:I

    iget v0, p0, Lcom/xingbook/anima/c;->l:I

    const/4 v2, 0x1

    if-le v0, v2, :cond_0

    aget-object v0, p1, v1

    iget v0, v0, Lcom/xingbook/anima/d;->a:F

    iput v0, p0, Lcom/xingbook/anima/c;->e:F

    iget v0, p0, Lcom/xingbook/anima/c;->l:I

    add-int/lit8 v0, v0, -0x1

    aget-object v0, p1, v0

    iget v0, v0, Lcom/xingbook/anima/d;->a:F

    iput v0, p0, Lcom/xingbook/anima/c;->f:F

    aget-object v0, p1, v1

    iget v0, v0, Lcom/xingbook/anima/d;->b:F

    iput v0, p0, Lcom/xingbook/anima/c;->g:F

    iget v0, p0, Lcom/xingbook/anima/c;->l:I

    add-int/lit8 v0, v0, -0x1

    aget-object v0, p1, v0

    iget v0, v0, Lcom/xingbook/anima/d;->b:F

    iput v0, p0, Lcom/xingbook/anima/c;->h:F

    move v0, v1

    :goto_0
    iget v2, p0, Lcom/xingbook/anima/c;->l:I

    add-int/lit8 v2, v2, -0x1

    if-lt v0, v2, :cond_1

    iget v0, p0, Lcom/xingbook/anima/c;->l:I

    add-int/lit8 v0, v0, -0x1

    new-array v0, v0, [D

    iput-object v0, p0, Lcom/xingbook/anima/c;->n:[D

    move v0, v1

    :goto_1
    iget v2, p0, Lcom/xingbook/anima/c;->l:I

    add-int/lit8 v2, v2, -0x1

    if-lt v0, v2, :cond_2

    :cond_0
    iput v1, p0, Lcom/xingbook/anima/c;->a:I

    iput v1, p0, Lcom/xingbook/anima/c;->b:I

    iput v1, p0, Lcom/xingbook/anima/c;->c:I

    iput v1, p0, Lcom/xingbook/anima/c;->d:I

    return-void

    :cond_1
    iget-wide v2, p0, Lcom/xingbook/anima/c;->m:D

    iget-object v4, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v5, v0, 0x1

    aget-object v4, v4, v5

    iget v4, v4, Lcom/xingbook/anima/d;->a:F

    iget-object v5, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v5, v5, v0

    iget v5, v5, Lcom/xingbook/anima/d;->a:F

    sub-float/2addr v4, v5

    iget-object v5, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v6, v0, 0x1

    aget-object v5, v5, v6

    iget v5, v5, Lcom/xingbook/anima/d;->a:F

    iget-object v6, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v6, v6, v0

    iget v6, v6, Lcom/xingbook/anima/d;->a:F

    sub-float/2addr v5, v6

    mul-float/2addr v4, v5

    iget-object v5, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v6, v0, 0x1

    aget-object v5, v5, v6

    iget v5, v5, Lcom/xingbook/anima/d;->b:F

    iget-object v6, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v6, v6, v0

    iget v6, v6, Lcom/xingbook/anima/d;->b:F

    sub-float/2addr v5, v6

    iget-object v6, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v7, v0, 0x1

    aget-object v6, v6, v7

    iget v6, v6, Lcom/xingbook/anima/d;->b:F

    iget-object v7, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v7, v7, v0

    iget v7, v7, Lcom/xingbook/anima/d;->b:F

    sub-float/2addr v6, v7

    mul-float/2addr v5, v6

    add-float/2addr v4, v5

    float-to-double v4, v4

    invoke-static {v4, v5}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v4

    add-double/2addr v2, v4

    iput-wide v2, p0, Lcom/xingbook/anima/c;->m:D

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    iget-object v2, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v3, v0, 0x1

    aget-object v2, v2, v3

    iget v2, v2, Lcom/xingbook/anima/d;->a:F

    iget-object v3, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v3, v3, v0

    iget v3, v3, Lcom/xingbook/anima/d;->a:F

    sub-float/2addr v2, v3

    iget-object v3, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v4, v0, 0x1

    aget-object v3, v3, v4

    iget v3, v3, Lcom/xingbook/anima/d;->a:F

    iget-object v4, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v4, v4, v0

    iget v4, v4, Lcom/xingbook/anima/d;->a:F

    sub-float/2addr v3, v4

    mul-float/2addr v2, v3

    iget-object v3, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v4, v0, 0x1

    aget-object v3, v3, v4

    iget v3, v3, Lcom/xingbook/anima/d;->b:F

    iget-object v4, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v4, v4, v0

    iget v4, v4, Lcom/xingbook/anima/d;->b:F

    sub-float/2addr v3, v4

    iget-object v4, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v5, v0, 0x1

    aget-object v4, v4, v5

    iget v4, v4, Lcom/xingbook/anima/d;->b:F

    iget-object v5, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v5, v5, v0

    iget v5, v5, Lcom/xingbook/anima/d;->b:F

    sub-float/2addr v4, v5

    mul-float/2addr v3, v4

    add-float/2addr v2, v3

    float-to-double v2, v2

    invoke-static {v2, v3}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v2

    iget-wide v4, p0, Lcom/xingbook/anima/c;->m:D

    div-double/2addr v2, v4

    if-lez v0, :cond_3

    iget-object v4, p0, Lcom/xingbook/anima/c;->n:[D

    iget-object v5, p0, Lcom/xingbook/anima/c;->n:[D

    add-int/lit8 v6, v0, -0x1

    aget-wide v5, v5, v6

    add-double/2addr v2, v5

    aput-wide v2, v4, v0

    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_1

    :cond_3
    iget-object v4, p0, Lcom/xingbook/anima/c;->n:[D

    aput-wide v2, v4, v0

    goto :goto_2
.end method


# virtual methods
.method protected applyTransformation(FLandroid/view/animation/Transformation;)V
    .locals 12

    const/4 v1, 0x0

    iget v0, p0, Lcom/xingbook/anima/c;->i:F

    iget v0, p0, Lcom/xingbook/anima/c;->j:F

    move v0, v1

    :goto_0
    iget v2, p0, Lcom/xingbook/anima/c;->l:I

    add-int/lit8 v2, v2, -0x1

    if-lt v0, v2, :cond_0

    :goto_1
    return-void

    :cond_0
    iget-object v2, p0, Lcom/xingbook/anima/c;->n:[D

    aget-wide v2, v2, v0

    float-to-double v4, p1

    cmpl-double v2, v2, v4

    if-lez v2, :cond_4

    if-lez v0, :cond_1

    float-to-double v2, p1

    iget-object v4, p0, Lcom/xingbook/anima/c;->n:[D

    add-int/lit8 v5, v0, -0x1

    aget-wide v4, v4, v5

    sub-double/2addr v2, v4

    :goto_2
    iget-object v4, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v4, v4, v0

    iget v4, v4, Lcom/xingbook/anima/d;->a:F

    float-to-double v6, v4

    iget-object v4, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v5, v0, 0x1

    aget-object v4, v4, v5

    iget v4, v4, Lcom/xingbook/anima/d;->a:F

    iget-object v5, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v5, v5, v0

    iget v5, v5, Lcom/xingbook/anima/d;->a:F

    sub-float/2addr v4, v5

    float-to-double v4, v4

    mul-double v8, v4, v2

    if-lez v0, :cond_2

    iget-object v4, p0, Lcom/xingbook/anima/c;->n:[D

    aget-wide v4, v4, v0

    iget-object v10, p0, Lcom/xingbook/anima/c;->n:[D

    add-int/lit8 v11, v0, -0x1

    aget-wide v10, v10, v11

    sub-double/2addr v4, v10

    :goto_3
    div-double v4, v8, v4

    add-double/2addr v4, v6

    double-to-float v4, v4

    iget-object v5, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v5, v5, v0

    iget v5, v5, Lcom/xingbook/anima/d;->b:F

    float-to-double v5, v5

    iget-object v7, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    add-int/lit8 v8, v0, 0x1

    aget-object v7, v7, v8

    iget v7, v7, Lcom/xingbook/anima/d;->b:F

    iget-object v8, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v8, v8, v0

    iget v8, v8, Lcom/xingbook/anima/d;->b:F

    sub-float/2addr v7, v8

    float-to-double v7, v7

    mul-double/2addr v7, v2

    if-lez v0, :cond_3

    iget-object v2, p0, Lcom/xingbook/anima/c;->n:[D

    aget-wide v2, v2, v0

    iget-object v9, p0, Lcom/xingbook/anima/c;->n:[D

    add-int/lit8 v0, v0, -0x1

    aget-wide v9, v9, v0

    sub-double/2addr v2, v9

    :goto_4
    div-double v2, v7, v2

    add-double/2addr v2, v5

    double-to-float v0, v2

    invoke-virtual {p2}, Landroid/view/animation/Transformation;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v2

    iget-object v3, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v3, v3, v1

    iget v3, v3, Lcom/xingbook/anima/d;->a:F

    sub-float v3, v4, v3

    iget-object v4, p0, Lcom/xingbook/anima/c;->k:[Lcom/xingbook/anima/d;

    aget-object v1, v4, v1

    iget v1, v1, Lcom/xingbook/anima/d;->b:F

    sub-float/2addr v0, v1

    invoke-virtual {v2, v3, v0}, Landroid/graphics/Matrix;->setTranslate(FF)V

    goto :goto_1

    :cond_1
    float-to-double v2, p1

    goto :goto_2

    :cond_2
    iget-object v4, p0, Lcom/xingbook/anima/c;->n:[D

    aget-wide v4, v4, v0

    goto :goto_3

    :cond_3
    iget-object v2, p0, Lcom/xingbook/anima/c;->n:[D

    aget-wide v2, v2, v0

    goto :goto_4

    :cond_4
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_0
.end method

.method public initialize(IIII)V
    .locals 2

    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/animation/Animation;->initialize(IIII)V

    iget v0, p0, Lcom/xingbook/anima/c;->a:I

    iget v1, p0, Lcom/xingbook/anima/c;->e:F

    invoke-virtual {p0, v0, v1, p1, p3}, Lcom/xingbook/anima/c;->resolveSize(IFII)F

    move-result v0

    iput v0, p0, Lcom/xingbook/anima/c;->i:F

    iget v0, p0, Lcom/xingbook/anima/c;->c:I

    iget v1, p0, Lcom/xingbook/anima/c;->g:F

    invoke-virtual {p0, v0, v1, p2, p4}, Lcom/xingbook/anima/c;->resolveSize(IFII)F

    move-result v0

    iput v0, p0, Lcom/xingbook/anima/c;->j:F

    return-void
.end method
